package cn.tedu.spring;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class UserMapper {

    public UserMapper(){
        System.out.println("\tUserMapper.UserMapper()");
    }

    @PostConstruct
    public void init(){
        System.out.println("\tUserMapper.init()");
    }

    @PreDestroy
    public void destory(){
        System.out.println("\tUserMapper.destory()");
    }

}
